package com.guyaning.deyson_core.core.utils.dimen;

import android.content.res.Resources;
import android.util.DisplayMetrics;

import com.guyaning.deyson_core.core.app.Deyson;

/**
 * Created by Administrator on 2018/4/20.
 */

public class DimenUtils {

    public  static  int getScreenWidth(){
        final  Resources resources = Deyson.getApplicationContext().getResources();

        DisplayMetrics displayMetrics = resources.getDisplayMetrics();

        return displayMetrics.widthPixels;
    }

    public  static  int getScreenHeight(){
        final  Resources resources = Deyson.getApplicationContext().getResources();

        DisplayMetrics displayMetrics = resources.getDisplayMetrics();

        return displayMetrics.heightPixels;
    }


}
